package com.elasticsearch.wenzi.elastic.result;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author sanmu
 * @description
 * @Date 2021/7/17
 */
@Data
public class ProductEsResult {
    //商品ID
    private Long productId;
    //商品名称
    private String productName;
    //商品价格
    private BigDecimal price;

    //商品打折后的价格
    private BigDecimal discountPrice;
    // 商品主图
    private String productImg;
    //品牌ID
    private Long brandId;
    //品牌名称
    private  String  brandName;
    //一级分类Id
    private Long oneCategoryId;
    //一级分类名称
    private String oneCategoryName;
    //二级分类Id
    private Long twoCategoryId;
    //二级分类名称
    private String twoCategoryName;
    //出售量
    private Long lockCnt;
    //商品状态
    private Long publishStatus;
    //商品功效
    private List<ProductEffect> productEffect;
    //肤质
    private List<Skin> skin;

    @Data
    public static  class  ProductEffect{
        //功效ID
        private Long productEffectId;
        //功效名称
        private  String productEffectName;
    }

    @Data
    public static class Skin{
        //肤质ID
        private  Long skinId;
        //肤质名称
        private  String skinName;
    }
}
